﻿using DE_MVC_WyFy.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DE_MVC_WyFy.Controllers
{
    public class ProductController : Controller
    {
        //
        // GET: /Product/

        public ActionResult Index(string id)
        {
			return Redirect("Home");
        }
		public ActionResult Detail(string id)
		{
			Product db = Product.Objects.GetById(id);
			return View(db);
		}
		public PartialViewResult ProductSummary(List<Product> lsprod) {

			return PartialView(lsprod);
		}
    }
}
